inspector: Fix object title label alignment
authorTimm Bäder <mail@baedert.org>
Thu, 3 Aug 2017 16:24:42 +0000 (18:24 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 3 Aug 2017 16:25:51 +0000 (18:25 +0200)
Re-center it after the center-child removal in GtkBox and the addition
of GtkCenterBox.

gtk/inspector/window.ui

index 992b4540f3e47c905bdc48c3b12b28c22416693b..e49dd382210bf71b8cea2f1d70e9b603f350b18e 100644 (file)
                 <property name="visible">1</property>
                 <property name="orientation">vertical</property>
                 <child>
-                  <object class="GtkBox">
-                    <property name="visible">1</property>
-                    <property name="spacing">10</property>
-                    <child>
-                      <object class="GtkStackCombo" id="stackcombo">
-                        <property name="visible">True</property>
-                        <property name="margin">6</property>
-                        <property name="stack">object_details</property>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkStack" id="object_start_stack">
-                        <property name="visible">True</property>
+                  <object class="GtkCenterBox">
+                    <child type="start">
+                      <object class="GtkBox">
+                        <property name="spacing">10</property>
                         <child>
-                          <object class="GtkBox">
+                          <object class="GtkStackCombo" id="stackcombo">
                             <property name="visible">True</property>
+                            <property name="margin">6</property>
+                            <property name="stack">object_details</property>
                           </object>
-                          <packing>
-                            <property name="name">empty</property>
-                          </packing>
                         </child>
                         <child>
-                          <object class="GtkBox">
+                          <object class="GtkStack" id="object_start_stack">
                             <property name="visible">True</property>
-                            <property name="orientation">horizontal</property>
-                            <property name="spacing">6</property>
-                            <property name="margin">6</property>
                             <child>
-                              <object class="GtkToggleButton" id="signals_trace_button">
+                              <object class="GtkBox">
                                 <property name="visible">True</property>
-                                <property name="relief">none</property>
-                                <property name="tooltip-text" translatable="yes">Trace signal emissions on this object</property>
-                                <property name="icon-name">media-record-symbolic</property>
                               </object>
+                              <packing>
+                                <property name="name">empty</property>
+                              </packing>
                             </child>
                             <child>
-                              <object class="GtkButton" id="signals_clear_button">
+                              <object class="GtkBox">
                                 <property name="visible">True</property>
-                                <property name="relief">none</property>
-                                <property name="tooltip-text" translatable="yes">Clear log</property>
-                                <property name="icon-name">edit-clear-symbolic</property>
+                                <property name="orientation">horizontal</property>
+                                <property name="spacing">6</property>
+                                <property name="margin">6</property>
+                                <child>
+                                  <object class="GtkToggleButton" id="signals_trace_button">
+                                    <property name="visible">True</property>
+                                    <property name="relief">none</property>
+                                    <property name="tooltip-text" translatable="yes">Trace signal emissions on this object</property>
+                                    <property name="icon-name">media-record-symbolic</property>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkButton" id="signals_clear_button">
+                                    <property name="visible">True</property>
+                                    <property name="relief">none</property>
+                                    <property name="tooltip-text" translatable="yes">Clear log</property>
+                                    <property name="icon-name">edit-clear-symbolic</property>
+                                  </object>
+                                </child>
                               </object>
+                              <packing>
+                                <property name="name">signals</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkScale">
+                                <property name="visible">True</property>
+                                <property name="orientation">horizontal</property>
+                                <property name="width-request">150</property>
+                                <property name="draw-value">False</property>
+                                <property name="adjustment">magnification_adjustment</property>
+                                <marks>
+                                  <mark value="1.0" position="bottom"/>
+                                  <mark value="2.0" position="bottom"/>
+                                  <mark value="3.0" position="bottom"/>
+                                  <mark value="4.0" position="bottom"/>
+                                  <mark value="5.0" position="bottom"/>
+                                </marks>
+                              </object>
+                              <packing>
+                                <property name="name">magnifier</property>
+                              </packing>
                             </child>
                           </object>
-                          <packing>
-                            <property name="name">signals</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <object class="GtkScale">
-                            <property name="visible">True</property>
-                            <property name="orientation">horizontal</property>
-                            <property name="width-request">150</property>
-                            <property name="draw-value">False</property>
-                            <property name="adjustment">magnification_adjustment</property>
-                            <marks>
-                              <mark value="1.0" position="bottom"/>
-                              <mark value="2.0" position="bottom"/>
-                              <mark value="3.0" position="bottom"/>
-                              <mark value="4.0" position="bottom"/>
-                              <mark value="5.0" position="bottom"/>
-                            </marks>
-                          </object>
-                          <packing>
-                            <property name="name">magnifier</property>
-                          </packing>
                         </child>
                       </object>
                     </child>
-                    <child>
+
+
+                    <child type="center">
                       <object class="GtkStack" id="object_center_stack">
                         <property name="visible">1</property>
                         <property name="transition-type">crossfade</property>